<div class="result">
    <?php if(count($this->terms)>0): ?>
    <dl>
    <?php foreach($this->terms as $term): ?>
    
        <dt><?php echo $this->escape($term->name) ?></dt>
        
        <?php foreach($term->definitions as $i => $definition): ?>
            <dd>
                <!-- Created: <?php echo $definition->created ?> -->
                <!-- Updated: <?php echo $definition->updated ?> -->
                
                <?php echo ($i+1) . '. ' ?>
                
                <?php if(!empty($definition->etymology)): ?>
                    <em>(<?php echo $definition->etymology ?>)</em>
                <?php endif; ?>
                
                <?php echo $definition->content ?>
            </dd>
        <?php endforeach; ?>
        
        <hr class="clearer" />
    <?php endforeach; ?>
    </dl>
    
    <?php else: ?>
        <h1>Non existe unha definición para o termo <?php echo $this->escape($this->q) ?></h1>
    <?php endif; ?>
</div>
